package printer;

/*
 * 打印机
 */

public class Printer {
	// 墨盒
	private InkBox inkBox;
	// 纸张
	private Paper paper;

	public InkBox getInkBox() {
		return inkBox;
	}

	public void setInkBox(InkBox inkBox) {
		this.inkBox = inkBox;
	}

	public Paper getPaper() {
		return paper;
	}

	public void setPaper(Paper paper) {
		this.paper = paper;
	}

	// 打印
	public void print() {
		System.out.println("正在使用" + inkBox.getColor() + "的墨盒往" + paper.getSize() + "纸张上打印");
	}
}
